package pkg.andru.animation;

import android.util.SparseArray;

public class AnimeParseException extends Exception {

    static final SparseArray<String> mExceptionArray = new SparseArray<String>();

    public static final int EXP_RESOURCE_NOT_FOUND = 1;

    static {
        mExceptionArray.put(EXP_RESOURCE_NOT_FOUND, "error: resource not find :%s");
    }

    /**
     * 
     */
    private static final long serialVersionUID = -3884012695050074843L;

    public AnimeParseException() {
        super();
    }

    public AnimeParseException(String message) {
        super(message);
    }

    public AnimeParseException(int type) {
        super(mExceptionArray.get(type));
    }

    public AnimeParseException(int type, String additonal) {
        super(String.format(mExceptionArray.get(type), additonal));
    }

}
